<template>
    <div>
        <h1>{{msg}}</h1>
        <button @click="addOne">addOne</button>
        <button @click="minusOne">minus One</button>
    </div>
</template>
<script>
    export default{
        data(){
            return{
                msg:'i am banana',
                pricce:15
            }
        },
        methods:{
            addOne(){
                this.$store.commit('increment',this.price)
            },
            minusOne(){
                this.$store.commit('decrement',this.price)
            }
        }
    }
</script>